<ion-modal-view>
  <ion-header-bar class="bar bar-royal">
    <h1 class="title">添加商品分类</h1>
    <div class="buttons">
      <button class="button button-icon ion-ios-close-empty" ng-click="modal.hide();"></button>
    </div>
  </ion-header-bar>
  <ion-content>
    <ion-list class="wrap-light2">

      <label class="item item-base item-select">
        <span class="list-label">上级分类</span>
        <select ng-model="newCatalog.parent_id">
          <option ng-repeat="catalog in catalogs" value="{{catalog._id}}">{{catalog.name}}</option>
        </select>
      </label>

      <ion-item class="item-input">
        <span class="list-label">分类名称</span>
        <input type="text" placeholder="请使用简短的名称" ng-model="newCatalog.name">
      </ion-item>



      <button class="button button-block button-royal" ng-click="add()">确认添加</button>

    </ion-list>
  </ion-content>
</ion-modal-view>
